xoops forums

Forum Index


Board index » All Posts (metin)




metin

Just popping in
Posted on: 2005/6/30 19:19
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#21

Re: Link only for special group - code problem

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}>


metin

Just popping in
Posted on: 2005/6/30 17:17
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#22

Re: Link only for special group - code problem

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>';}


metin

Just popping in
Posted on: 2005/6/30 16:04
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#23

Link only for special group - code problem

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 ?


metin

Just popping in
Posted on: 2005/3/26 17:46
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#24

php code in template question !!

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}>


metin

Just popping in
Posted on: 2005/3/9 6:24
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#25

Re: Jamroom-like Module for Music Artists to make profiles and music uploads

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/



metin

Just popping in
Posted on: 2005/3/2 5:43
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#26

Re: Jamroom-like Module for Music Artists to make profiles and music uploads

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 % ).


metin

Just popping in
Posted on: 2004/12/18 23:27
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#27

Re: Jamroom-like Module for Music Artists to make profiles and music uploads

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


metin

Just popping in
Posted on: 2004/12/12 17:02
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#28

why is newbb2 slow - alternatives ?

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 ?


metin

Just popping in
Posted on: 2004/12/10 16:49
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#29

Re: want to upgrade from phpBB forum to xoops

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 ?


metin

Just popping in
Posted on: 2004/12/9 16:15
metin
metin (Show more)
Just popping in
Posts: 64
Since: 2003/6/21
#30

Re: Jamroom-like Module for Music Artists to make profiles and music uploads

hello again

djsckizo i should learn php too



TopTop
« 1 2 (3) 4 5 6 »