vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Forum Sponsor (https://vborg.vbsupport.ru/showthread.php?t=128829)

iulianh 12-27-2007 08:26 AM

I was looking for this ! Thanks a lot !

perfphysio 01-19-2008 09:28 AM

Quote:

Originally Posted by jaks (Post 1113762)
If you want to add the target="_blank" and title="Sponsor name" to the text link and alt="Sponsor name" to the linking image. Modify the template edit you did in the forumdisplay template. This bypasses the fields.

Find:
Code:

<tr>
        <td width="10" rowspan="2" valign="middle"><div align="center"><a href="$foruminfo[sponsorlink]"><img src="$foruminfo[sponsorimage]" alt="$foruminfo[sponsorname] Image" border="0"></a></div></td>
        <td valign="top"><div align="left"><strong><a href="$foruminfo[sponsorlink]">$foruminfo[sponsorname]</a></strong></div></td>
      </tr>


Replace with:
Code:

<tr>
        <td width="10" rowspan="2" valign="middle"><div align="center"><a target="_blank" href="$foruminfo[sponsorlink]"><img alt="$foruminfo[sponsorname]" src="$foruminfo[sponsorimage]" alt="$foruminfo[sponsorname] Image" border="0"></a></div></td>
        <td valign="top"><div align="left"><strong><a target="_blank" title="$foruminfo[sponsorname]" href="$foruminfo[sponsorlink]">$foruminfo[sponsorname]</a></strong></div></td>
      </tr>

For a demo to prove it works go here http://www.trulyunusual.com/wards/forumdisplay.php?f=17



Enjoy
Jaks

Sorry for the very late response to you post but a BIG THANK YOU :) This works perfectly :)

perfphysio 01-19-2008 09:39 AM

Quote:

Originally Posted by myidealmate (Post 1209950)
Nice Mod. Installed it in a few seconds.

Installed on 3.6.5

For those of you who wanted it to say "Forum Sponsor" at the top and also wanted the links to open in the seperate window just change the code to the following:

PHP Code:

<if condition="$foruminfo['sponsorenabled'] == 1">
<
table width="100%" class="tborder" border="0" align="center">
<
tr>
<
td width="100%" align="right">Forum Sponsor</td>
</
tr>
  <
tr>
    <
td class="alt1"><table width="100%" border="0" cellspacing="5">
      <
tr>
        <
td width="10" rowspan="2" valign="middle"><div align="center"><a href="$foruminfo[sponsorlink]target="_blank"><img src="$foruminfo[sponsorimage]alt="$foruminfo[sponsorname] Image" border="0"></a></div></td>
        <
td valign="top"><div align="left"><strong><a href="$foruminfo[sponsorlink]target="_blank">$foruminfo[sponsorname]</a></strong></div></td>
      </
tr>
      <
tr>
        <
td valign="top"><div align="left">$foruminfo[sponsordescription]</div></td>
      </
tr>
    </
table></td>
  </
tr>
</
table>
<
br>
</if> 

Hope this helps.

Regards,
Ray

Perfect, many thanks :)

midlandi 01-19-2008 06:24 PM

Great mod, very easy to install.:up:

midlandi 01-19-2008 06:27 PM

Quote:

Originally Posted by perfphysio (Post 1424309)
Perfect, many thanks :)

Thanks Ray

Nice addition.:up:

QuetzalRevolver 01-19-2008 10:52 PM

great mod, installed

jimjam 01-22-2008 04:50 PM

Hi Guys, I want a different add to appear in each of my forums. Will this do that or is it just one add that is displayed in every forum. Thanks

ctfortner 01-23-2008 05:38 PM

Worked great on my 3.6.8. Thanks a ton, love it

nikki712 01-29-2008 04:41 PM

Quote:

Originally Posted by jimjam (Post 1426767)
Hi Guys, I want a different add to appear in each of my forums. Will this do that or is it just one add that is displayed in every forum. Thanks

I'd be interested in knowing this answer too, as I was going to post the exact same question. :)

yeku 01-29-2008 06:13 PM

Great, perfect....

Thank you very much

Installed


All times are GMT. The time now is 08:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01964 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete