The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Message of the day hack
Hi..
I've hunted high and low for this really quite simple (I think!) hack... I just want to be able to enter a message into the admin CP and put a $messageoftheday variable in forumhome Would a simple table in SQL.. an additional template and a basic added PHP page in the admin folder do the trick?? Im no good with PHP and I have really tried but I couldn't get it work. Anyone got something similar they could share?? Thanks! |
#2
|
||||
|
||||
// Message of Day by hyper22shadow/mx3
$messageofday="Your message here"; // End message of day by hyper22shadow/mx3 Put that above ?> in index.php then open forumhome template PHP Code:
All done. |
#3
|
||||
|
||||
That could work, but you would have to hardcode the message in each day.
You could try this, https://vborg.vbsupport.ru/showthrea...threadid=53170 And if thats still not what you are looking for, I can help. |
#4
|
||||
|
||||
Both are nearly there
Thanks guys! Assassin.. If you could knock something quickly.. that would be cool. The other admins on my site are site owners, they don't have much VBulletin knowledge. Id rather they could just go into the admin CP, click a link and edit a message that is copied onto the forum home instead of hoping they can fathom the templates to find the HTML and edit it. Does that make sense? Its a similar idea to the "quote of the day" type hack. Instead of a random quote, it's just a fixed message that can be edited and changed by admins via the CP. |
#5
|
||||
|
||||
Sure, ok, here's what you do.
Run these 2 queries [SQL] INSERT INTO setting (settinggroupid, title, varname, value, description, optioncode, displayorder) VALUES ('32', 'Message of the Day', 'motd', 'Enter your message here.....', 'Enter the message here.','textarea','1'); [/SQL] [SQL] INSERT INTO `settinggroup` VALUES (32, 'Message of the Day', 32); [/SQL] Open up index.php and find: PHP Code:
PHP Code:
Code:
$motd |
#6
|
||||
|
||||
... and everytime I change the MOTD.. it changes the message??
Just click the option, scrawl the text and hit apply. Poof done? WOW. You da man :bandit: Im gonna just run this on my test forum and then Il post back thanks assassin! |
#7
|
||||
|
||||
Yep, that's it.
No problem |
#8
|
||||
|
||||
You are a genius my friend!
As soon as you are old enough to buy a beer, PM me and Il send the ? necessary! |
#9
|
||||
|
||||
haha, why thank you very much
|
#10
|
||||
|
||||
Heh...I just put mine in there really fast. assasingod = better.
Mine does work, but it is too simple i guess >< |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|