vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   VB Banner Control 1.2 (https://vborg.vbsupport.ru/showthread.php?t=41154)

KarateKid 10-20-2002 02:47 PM

hmmm, sorry, no idea,

but you could try to assign the cells manually by phpmyadmin? :)

Best Regards. :banana:

Buddha 10-22-2002 12:28 PM

is there a way of putting either an additional field to name each banner or add a thumbnail of the picture, or a link to the picture so that you can quickly remember which is which... as some of us may be using quite a few banners and buttons. it gets confusing to remember which is which and have to click into each and check the links.
thanks.

KarateKid 10-22-2002 01:28 PM

sure, it is :)

If I have the time I would implement it, but you could easy put a <img> tag before the information row, so that you have the banner there.

Buddha 10-22-2002 03:13 PM

which file are you referring to bud?

KarateKid 10-22-2002 03:17 PM

of course the admin file: banner_manage.php

Buddha 10-22-2002 03:32 PM

i fooled around with that file after i posted my reply, but i keep getting parse errors... i'm not that knowledgable with php...
i added a line of code to makelink by the other options, but it doesn't seem to work. any thoughts?

(thanks for the quick reply btw)

KarateKid 10-22-2002 07:28 PM

try to replace this line:

PHP Code:

echo "<td width='20%' align='center'>$ba[id]".makelinkcode("edit","banner_manage.php?s=$session[sessionhash]&action=edit&bannerid=$ba[id]"). 

with this line:

PHP Code:

echo "<td width='20%' align='center'><img src='$ba[url_to_banner]' border='0' width='40' height='20'>$ba[id]".makelinkcode("edit","banner_manage.php?s=$session[sessionhash]&action=edit&bannerid=$ba[id]"). 

Regards.

Buddha 10-22-2002 09:36 PM

that's excellent karatekid!
thank you very much!

*edit*
i set the width to 50px, and left the height out so the image wasn't distorted (as i use different size banners) and it looks great.
thanks again.

Buddha 10-22-2002 09:50 PM

i've fooled around a little more and set the picture as a link to the larger size. works great cause it appears in the same frame and it's easy to go back and forth to check them out (the 468 wide banners are harder to tell apart at 50px).

PHP Code:

echo "<td width='20%' align='center'><a href='$ba[url_to_banner]'><img src='$ba[url_to_banner]' border='0' width='50'></a>$ba[id]".makelinkcode("edit","banner_manage.php?s=$session[sessionhash]&action=edit&bannerid=$ba[id]"). 

the funny thing is, i was so close with my initial experimenting, but like i said, i don't know php so i wasn't using the right syntax.

KarateKid 10-23-2002 05:13 AM

no problem, you're welcome :)


All times are GMT. The time now is 11:57 AM.

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.01265 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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