Author Topic: Postcard dugme u Kategorije  (Read 13119 times)

0 Members and 1 Guest are viewing this topic.

Offline casper01

  • Newbie
  • *
  • Posts: 22
    • View Profile
Postcard dugme u Kategorije
« on: July 17, 2008, 11:50:05 PM »
Pozdrav ljudi, opet ja  :wink:.
Ok Nicky nek ostane kako jeste to jest nek scripta salje samo link (milislim na postcard).
Drugi problem je dodatno dugme "e-card" u categorije.Znaci to dugme zelim da bude  ispod svake slike u kategorije ili podkategorije,i klikom idem na recimo :postcards.php?image_id=1 .

Znam da se koristi ovaj kod ali neznam tacno gde treba da se stavi:

Code: [Select]
if (!check_permission("auth_sendpostcard", $image_row['cat_id'])) {
    $postcard_button = "<img src=\"".get_gallery_image("postcard_off.gif")."\" border=\"0\" alt=\"\" />";
  }
  else {
    $postcard_button = "<a href=\"".$site_sess->url(ROOT_PATH."postcards.php?".URL_IMAGE_ID."=".$image_row['image_id'].((!empty($mode)) ? "&amp;mode=".$mode : ""))."\"><img src=\"".get_gallery_image("postcard.gif")."\" border=\"0\" alt=\"\" /></a>";
  } 
i naravno registracija varijabila
Code: [Select]
"postcard_button" => $postcard_button,
Mislim da postoji i neki laksi nacin da se cita postcard_button u categorije php.

« Last Edit: July 18, 2008, 12:12:26 AM by Nicky »

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Postcard dugme u Kategorije
« Reply #1 on: July 18, 2008, 12:13:42 AM »
ćao :)

probaj ovo

u template thumbnail_bit.html ubaci gde hoćeš

Code: [Select]
{postcard_button}
i nigde više ništa..

iznenadjenje ;)
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline casper01

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Postcard dugme u Kategorije
« Reply #2 on: July 19, 2008, 04:25:26 PM »
Pozdrav Nicky, bio sam malo zauzet i nisam stigo da ti zahvaljujem na brzom i jednostavnom resenju.
Hvala jos jednom
Poz

Offline casper01

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Postcard dugme u Kategorije
« Reply #3 on: July 19, 2008, 05:56:37 PM »
Evo jos jedno pitanje;
Kako da odradim da postcard dugme (off) se ne pojavi u odredjenoj kategoriji recimo cat_id=1??

I slicno pitanje kao da mi se user box pojavi samo na stranici recimo categories.php?cat_id=6.
Nasao sam nesto slicno na ovom postu http://www.4homepages.de/forum/index.php?topic=4924.0 gde admin Chris daje link do tog moda.Medjutim taj link do moda nije vazeci MOD : http://4homepages.de/forum/viewtopic.php?t=1847


Izvinite ako sam malo dosadan..necu vise

Poz
« Last Edit: July 19, 2008, 06:12:46 PM by casper01 »

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Postcard dugme u Kategorije
« Reply #4 on: July 20, 2008, 01:13:49 AM »
ћао каспер,

нажалост нису преправљени сви стари линкови из прошлог форума
овај је тачан: http://4homepages.de/forum/index.php?topic=1847
ако случајно налетиш на још који такав само измени нпр. viewtopic.php?t=1847 са index.php?topic=1847

поздрав
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline casper01

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Postcard dugme u Kategorije
« Reply #5 on: July 20, 2008, 10:07:34 AM »
Hvala jos jednom
Poz