The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Repeating an image ?
is it possible to repeat an image thats not in the database
example if a user has 10 posts i want this image to repeat once and if they have 20 i want it to repeat twice etc any ideas. |
#2
|
||||
|
||||
Well, you'd probably need a custom plugin to do what you want normally. If you use the image as a background, you can do it by changing the size of the container. For example:
Code:
<if condition="$postsbarwidth=$post['posts']/10"> <div style="background-image:url(images/myrepeatingimage.gif);background-repeat:repeat-x;height:15px;width:{$postsbarwidth}px;padding:0px;"><img src="$vboptions[cleargifurl]" alt="" height="15" width="$postsbarwidth" /></div> </if> Code:
<if condition="$postsbarwidth=intval($post['posts']/10)*15"> I'm sorry, I'm affraid that this is pretty complicated... |
#3
|
|||
|
|||
thx m8 but i was woundering if it was possible to repeat the same image again and again every xx posts
like pip1.gif = 0 posts then pip1.gif x 2 = 25 posts etc thx inadvance |
#4
|
|||
|
|||
something like Ranking for Images in Posts... hum, strange... lol
|
#5
|
|||
|
|||
whys it strange m8
|
#6
|
|||
|
|||
nothing personal wolfe, it's just the "reason why it would be useful"... i'd like to have your reason here, so maybe we can have a more precise code to offer... you explain what you intend to do, but not the reason why...
programming is about reasons/targets, not means... |
#7
|
|||
|
|||
m8 i released a hack https://vborg.vbsupport.ru/showthread.php?t=148482 which i want to make smaller using image repeat
|
#8
|
||||
|
||||
That's what I explained how to do.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|