View Full Version : Article quote in module...
thetraveler
11-05-2005, 11:18 PM
Hello,
I'm not a coder so I'm hoping someone can explain how I could have a textbox for an "article quote" when submitting news:
102
Then display it as a module on the article page:
103
I read over how to create a module tutorial but was quickly lost. If someone could help me out I'd appreciate it. :)
Thanks.
The Geek
11-06-2005, 08:13 AM
Try this: Copy the references module, rename it, edit it and change the $title='references'; line to $title='Quote'.
Think that should do what you're after... if not, let me know.
thetraveler
11-09-2005, 12:30 PM
Ok I'm getting very close to making this work. Do I need to change any of the ['custom_refs'] in quote.php (formerly references.php)?
Also won't I need to copy/rename the references template to change the module title from "References" to "Article Quote"?
Thanks for your help on this. At least I'm starting to understand the code a little more than I did. :)
The Geek
11-09-2005, 05:47 PM
To be safe, I would change 'custom_refs' instances to 'custom_quote' and create a new template named GARS_custom_quote with the references HTML in it.
Hope this helps!
thetraveler
11-09-2005, 06:35 PM
Yes that did it! After I changed the template call in quote.php...**poof** like magic I had my new module!
Thanks so much! :)
The Geek
11-09-2005, 06:40 PM
Not a problem. Glad you did it. If you get an inkling - post it in the add ons section - Id like to get as many modules out there as possible.
Thanks again
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.