21
metin
Re: Link only for special group - code problem
  • 2005/6/30 19:19

  • metin

  • Just popping in

  • Posts: 64

  • Since: 2003/6/21


now the singlefile page doesn´t work anymore.

Did try to add this code at ratefile template, cause than normal users can´t pushed the voting button but there is the same problem after i add the code in the template. The ratefile page don´t work.

this was the code for the ratingfile template

<{if $xoops_isuser}>
<{
php}>
global 
$xoopsUser;
$redaktion '4';
$name $xoopsUser->getVar('uname');
$groups $xoopsUser->getGroups();
if (
in_array($redaktion$groups)) 
{
echo 
'<form method="post" action="ratefile.php">n
        <input type="hidden" name="lid" value="<{$file.id}>" />n
        <input type="hidden" name="cid" value="<{$file.cid}>" />n
             <select name="rating"><option>--</option><option>10</option><option>9</option><option>8</option><option>7</option><option>6</option><option>5</option><option>4</option><option>3</option><option>2</option><option>1</option></select>n
        &nbsp;&nbsp;n
        <input type="submit" name="submit" value="<{$smarty.const._MD_PDD_RATEIT}>" alt="<{$smarty.const._MD_PDD_RATEIT}>" /> <input type="button" value="<{$smarty.const._CANCEL}>" alt="<{$smarty.const._CANCEL}>" onclick="location='
<{$xoops_url}>/modules/PDdownloads/singlefile.php?cid=<{$file.cid}>&lid=<{$file.id}>'" />n
      </form>n";
}
<{/php}>
<{/if}>



22
metin
Re: Link only for special group - code problem
  • 2005/6/30 17:17

  • metin

  • Just popping in

  • Posts: 64

  • Since: 2003/6/21


nobody there who could tell me how i have to write this echo line right ?

echo '<a href='<{$xoops_url}>/modules/PDdownloads/ratefile.php?cid=<{$down.cid}>&lid=<{$down.id}>'><{$smarty.const._MD_PDD_RATETHISFILE}></a>';}



23
metin
Link only for special group - code problem
  • 2005/6/30 16:04

  • metin

  • Just popping in

  • Posts: 64

  • Since: 2003/6/21


I have in PDdownloads module the VOTE button which i want to allow only for the special member group ( identity 4 ). This is the original link.

<a href='<{$xoops_url}>/modules/PDdownloads/ratefile.php?cid=<{$down.cid}>&lid=<{$down.id}>'><{$smarty.const._MD_PDD_RATETHISFILE}></a>


If i use this code in the singlefile.html template the
Voting page doesn´t open and it comes an error page. Also the button shows not the translated word only "{$smarty.const._MD_PDD_RATETHISFILE}>".

<{if $xoops_isuser}>
<{
php}>
global 
$xoopsUser;
$tamuye '4';
$name $xoopsUser->getVar('uname');
$groups $xoopsUser->getGroups();
if (
in_array($tamuye$groups)) {
echo 
'<a href='<{$xoops_url}>/modules/PDdownloads/ratefile.php?cid=<{$down.cid}>&lid=<{$down.id}>'><{$smarty.const._MD_PDD_RATETHISFILE}></a>';}                                      
<{/
php}>
<{/if}>


What i have to add at after echo ?



24
metin
php code in template question !!
  • 2005/3/26 17:46

  • metin

  • Just popping in

  • Posts: 64

  • Since: 2003/6/21


i want to show the RATING button in pd downlaods module only an special group and did add following code to the singlefile template. The special group see the button but the link ( after echo ) doesn´t work how it works before without the php code. It doesn´t show the translated word too.

Where is the mistake ?
I will update later de php code but until then i want to use this template opportunity.


<{if $xoops_isuser}>
<{
php}>
global 
$xoopsUser;
$redaksiyon '4';
$name $xoopsUser->getVar('uname');
$groups $xoopsUser->getGroups();
if (
in_array($redaksiyon$groups)) {
echo 
'<a href="<{$xoops_url}>/modules/PDdownloads/ratefile.php?cid=<{$down.cid}>&lid=<{$down.id}>"><{$smarty.const._MD_PDD_RATETHISFILE}></a> |';}                                      
<{/
php}>
<{/if}>



25
metin
Re: Jamroom-like Module for Music Artists to make profiles and music uploads
  • 2005/3/9 6:24

  • metin

  • Just popping in

  • Posts: 64

  • Since: 2003/6/21


thanks for your answer hyperpod

i have an homepage for you which is build with XOOPS 1, where they use an songvoting module.

http://www.homerecording.de

You can see the top ten track listing at the right blocks with the name "Homerecording Charts 3/2005". There are also at the left block site one another block of the songvoting module with the name "New Votings".

here ist the direkt link to the module:

http://homerecording.de/modules/jvsongvoting/




26
metin
Re: Jamroom-like Module for Music Artists to make profiles and music uploads
  • 2005/3/2 5:43

  • metin

  • Just popping in

  • Posts: 64

  • Since: 2003/6/21


hyperpod

nice to see your last posting.

Could there be an option for adding only url´s for an track ?

And is it possible to add the ratings of an group / artist ( all ratings of the tracks ) ro get an summary rating of the group ?

So it could be possible to make a block with top ten artists.

Could there be another rating / review option only for an special group of selected users and both ratings could be done together to get a realistic rating ( user 50 % and special group 50 % ).



27
metin
Re: Jamroom-like Module for Music Artists to make profiles and music uploads
  • 2004/12/18 23:27

  • metin

  • Just popping in

  • Posts: 64

  • Since: 2003/6/21


what about this special artists module: coolMusic

i think it´s not free and made for www.dj.com.tw but it could be nice to get it


http://www.brandycoke.com/about/our_work/djcomtw.php



28
metin
why is newbb2 slow - alternatives ?
  • 2004/12/12 17:02

  • metin

  • Just popping in

  • Posts: 64

  • Since: 2003/6/21


i did install newbb2 now and forumpages opens very very slow. Like here in this forum too.

Is it a bug ?

Is it normal ?

The editor page opens very fast.

Should i use another forum - as example newbb1 or phpbb2 etc. ?

Is it possible to use newbb2 later ( when this problem is solved 9 ?



29
metin
Re: want to upgrade from phpBB forum to xoops
  • 2004/12/10 16:49

  • metin

  • Just popping in

  • Posts: 64

  • Since: 2003/6/21


is it possible to get this converter ?

i did lokk at bbpixel but didnt find one to convert from phpbb2 to newbb !

do you know which one i have to use ?



30
metin
Re: Jamroom-like Module for Music Artists to make profiles and music uploads
  • 2004/12/9 16:15

  • metin

  • Just popping in

  • Posts: 64

  • Since: 2003/6/21


hello again

djsckizo i should learn php too




TopTop
« 1 2 (3) 4 5 6 »



Login

Who's Online

165 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 165


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits