View Full Version : MOD Request...please...
DarknessDivine
07-29-2004, 08:23 PM
Okay this is my first mod request...I need a mod that will pull it's info from a specific forum on my board like the center news module does but this needs to be a module that can fit like on the left or right side. Can someone please either point me in the right direction or show what to do...please,... :p
tomshawk
07-29-2004, 08:40 PM
Forgive me if I'm wrong, but it sounds like you want something like this
http://www.vbadvanced.com/forum/showthread.php?t=2036
or this
http://www.vbadvanced.com/forum/showthread.php?t=100
At the end of the first link, are the instructions I wrote up, obviously crediting Brian for the work ;) just easier to follow.
Obviously the difference is the forum you want to pull from.
You can see a Demo, on my site
http://www.tomshawk.com
The module on the top right "Latest_QOTW"
I have it pulling from about 20 specific forums, you can set it to 1
HTH
DarknessDivine
07-29-2004, 10:34 PM
Okay, now will this show the posts entirely or will it just show bits of the post. I want it basically to be used to show quotes on the front page from a hidden forum I post them in. Like I do with the news..does that make sense?
Please say it does..
tomshawk
07-29-2004, 11:34 PM
Okay, now will this show the posts entirely or will it just show bits of the post. I want it basically to be used to show quotes on the front page from a hidden forum I post them in. Like I do with the news..does that make sense?
Please say it does..
Ouch
First, Yes it makes sence.
Second, no, this wont do that.
What this does is act like the latest threads block, but only for a certain forum or 2 or however many, but it still wont show bits of the post :( at least as is.
Sorry it didn't help, and good luck
DarknessDivine
07-29-2004, 11:36 PM
Well thanks for trying though..;) I am sure it will get figured out..I think I am needing to use an external js or something..Maybe Brian will have an idea..He is the brains around here..lol
KW802
07-29-2004, 11:58 PM
Darkness, what parts of the news module did you want to keep or drop? It sounds like you really just want to make a modified copy of the new.php module to be hard-coded for a particular forum and then use a modified copy of the template.
DarknessDivine
07-30-2004, 12:14 AM
Yes that sounds right...lol...
Okay I have this one forum that I want to put quotes in either every day or on a weekly basis and I want them to be displayed like the news in a side module so it can't be as wide or big as the news module.I don't need the read more option or the email to friend or any of that just the basic quote to show.
Hope someone can help...
DarknessDivine
07-30-2004, 01:10 PM
anyone got an idea on this one?
Ted S
07-30-2004, 05:59 PM
Darkness,
Copy the news module and templates and modify the template to show on the title and any other fields you want. This is actually very simple, on my site I used a customized version of the template to display classified ad postings with the title, author and views but nothing else, for me its a center module but it would work as a side one as well.
DarknessDivine
07-30-2004, 06:01 PM
Okay this is what is in my newsbits template..Exactly what would I take out in order just to show tht newest post from a forum and that's all? I'm afraid to just take things out without knowing what will screw it up and what won't...
<table background="forums/images/color/bg.gif" align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" align="$stylevar[left]"><img src="forums/images/d/bg_left.gif" align="absmiddle"><if condition="$news['subscribed']"> <span style="float:$stylevar[right]"><img alt="" class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" title="$vbphrase[you_are_subscribed_to_this_thread]" /> </span> </if> <if condition="$show['threadicon']"> <img alt="" border="0" src="$news[threadiconpath]" title="$news[threadicontitle]" /> </if> <strong><a href="$vboptions[bburl]/showthread.php?t=$news[threadid]"><font size="3">$news[title]</font></a></strong></td>
<td><img src="forums/images/d/l_right.gif" align="absmiddle"></td>
</tr>
</table>
<table align="center" border="0" class="tborder" cellpadding="2" cellspacing="1" width="100%">
<tr>
<td class="alt2"><span style="float:right" class="smallfont"> <if condition="$vba_options['portal_news_allowreplies']"> <a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$news[threadid]">$news[replycount] <if condition="$news['replycount'] == 1">$vbphrase[reply]<else />$vbphrase[replies]</if></a> | </if> $news[views]
$vbphrase[views]</span><if condition="$vba_options['portal_news_showrating'] AND $news['votenum'] > 0"> <span style="float:$stylevar[right]"><img alt="" src="$stylevar[imgdir_rating]/rating_$news[rating].gif" title="<phrase 1="$news[votenum]" 2="$news[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span> </if> <span class="smallfont"> <phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$news[postuserid]" 2="$news[postusername]">$vbphrase[by_x]</phrase> $vbphrase[on]
$dateposted</span> </td>
</tr>
<tr>
<td align="$stylevar[left]" class="alt1" valign="top"><if condition="$vba_options['portal_news_showavatar'] AND $newsavatarurl">
<table align="$stylevar[left]" cellspacing="4">
<tr>
<td><img alt="" border="0" src="$newsavatarurl" title="$news[postusername]'s $vbphrase[a_avatar]" /></td>
</tr>
</table>
</if> $news[message] <span style="float:right"> <if condition="$bbuserinfo['usergroupid'] == 6"> <a href="$vboptions[bburl]/editpost.php?$session[sessionurl]do=editpost&p=$news[postid]"><img alt="$vbphrase[edit_this_post]" border="0" src="$stylevar[imgdir_button]/edit.gif" /></a> </if> <if condition="$vba_options['portal_news_allowreplies']"> <a href="$vboptions[bburl]/newreply.php?$session[sessionurl]do=newreply&t=$news[threadid]"><img alt="$vbphrase[reply_to_this_post]" border="0" src="$stylevar[imgdir_button]/reply_small.gif" /></a> </if> <if condition="$vba_options['portal_news_showsendfriend']"> <a href="$vboptions[bburl]/sendmessage.php?$session[sessionurl]do=sendtofriend&t=$news[threadid]"><img alt="" border="0" src="$stylevar[imgdir_button]/sendtofriend.gif" title="$vbphrase[send_to_friend]" /></a> </if> <if condition="$vba_options['portal_news_showprintable']"> <a href="$vboptions[bburl]/printthread.php?$session[sessionurl]t=$news[threadid]"><img alt="" border="0" src="$stylevar[imgdir_button]/printer.gif" title="$vbphrase[show_printable_version]" /></a> </if> </span><if condition="$show['signature']">
<div>__________________<br />
$news[signature]</div>
</if> </td>
</tr>
<if condition="$news['attachmentid']">
<tr class="alt1">
<td><fieldset class="fieldset">
<legend>Attached Files</legend>
<table>
$attachment
</table>
</fieldset></td>
</tr>
</if>
</table>
<br />
Now I already have this started for the module below:
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="1245" background="forums/images/mine/navbsr_1.jpg"><img src="forums/images/mine/navbar_left_1.jpg" align="absmiddle"><font color="#FFFFFF" size="3"><strong>Quote</strong></font></td>
</tr>
<tr>
<td><img src="forums/images/mine/navbar_2.jpg"></td>
</tr>
<tr>
<td valign="top" background="forums/images/mine/navbar_3.jpg"><table width="140" border="0" cellpadding="4" cellspacing="0">
<tr>
<td valign="top" background="forums/images/mine/navbar_3.jpg"><span class="smallfont">Soon to be Quotes. ...<br /><br />~ Unknown~<p /></span></td>
</tr>
</table></td>
</tr>
</table>
DarknessDivine
07-30-2004, 08:59 PM
bump? Not to bug guys but I really need some instruction on this one..please...:(
Ted S
07-31-2004, 12:36 AM
Same day responses... on a Friday? Come on now... a little patience please!
My appologies on the feature, you would be better off using the news archive to pull in thread titles with the archive used the following templates:
For template adv_portal_news_archive
<!-- News Archive -->
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat">$vba_options[portal_blockbullet] <span class="smallfont"><strong>Latest Quotes</strong></span></td>
</tr>
$newsarchivebits
</table>
<br />
<!-- End News Archive -->
For template adv_portal_news_archivebits
<tr>
<td class="$getbgrow">
<span class="smallfont"><a href="$vboptions[bburl]/showthread.php?t=$news[threadid]" title="$vbphrase[by] $news[postusername] $news[postdate] $news[posttime]">$news[title]</a>
</span>
</tr>
This will show the latest thread titles linked to the threads and nothing else. You can of course add back some of the original code to show the forum name, the author, the views, replies, thread icon or subscribed thread icon as needed. Hopefully this does the trick!
DarknessDivine
07-31-2004, 12:40 AM
Cool, so I just create a new template to hold this code and it's a go...And wans't rushing ya..lol..didn't actually know you were gonna do all of this..Thanks a Bunch!!!!!!!!!!!!!!!!!!!!!!!!!!
EDIT....OOOps where do I put the forum ID at in this code?
DarknessDivine
08-01-2004, 12:56 PM
n/m I actually used and external file to pull the title from the post and it displays fine..;)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.